//index.js
//获取应用实例
const app = getApp()
const WxParse = require('../../wxParse/wxParse.js');

Page({
  data: {
    title:"文章标题",
  },
  onLoad:function(){
    var that=this;
    //内容解析
    wx.request({
      url: '',
      method:"get",
      success: function (resp){
        var content = resp.content
        WxParse.wxParse('content', 'html', content, that, 3);
      }
    })
    
  },
  onShareAppMessage: function () {
    var that = this;
    return {
      title: that.data.title,
      path: '/pages/index/index'
    }
  },
 
})
